/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controlador;

import modelo.dominio.PlanGeneral;
import modelo.dominio.Usuario;
import javax.swing.JOptionPane;

/**
 *
 * @author Felipe
 */
public class Inserter {

    public static boolean insert(Object obj){
        boolean estado = false;
        if(obj instanceof PlanGeneral){
            estado = insertPlanGeneral();
        }
        if(obj instanceof Usuario){
            estado = insertUsuario();
        }
        return estado;
    }

    public static boolean insertPlanGeneral(){
        JOptionPane.showMessageDialog(null, "insertar PlanGeneralFD");
        return true;
    }

    public static boolean insertUsuario(){
        JOptionPane.showMessageDialog(null, "insertar UsuarioFD");
        return true;
    }



}
